﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Computer
    {
        private string brand;

        private Interface1 usb1;

        private Interface1 usb2;

        public string Brand { get => brand; set => brand = value; }
        internal Interface1 Usb1 { get => usb1; set => usb1 = value; }
        internal Interface1 Usb2 { get => usb2; set => usb2 = value; }

        public Computer(string brand)
        {
            this.brand = brand; 
        }
        public Computer() { }

        public void start()
        {
            Console.WriteLine("{0}电脑开机中...",this.brand); 
        }
        public void end()
        {
            Console.WriteLine("{0}电脑关机中...", this.brand);
        }

        public void ReadData()
        {
            usb1.Read();
            usb2.Read();
        }
        public void WriteData()
        {
            usb1.Write();
            usb2.Write();
        }
    }
}
